package cn.kgc.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @author example
 * @version 1.0
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "resume_education")
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@SuppressWarnings("all")
public class ResumeEducation extends Model<ResumeEducation> implements Serializable {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 谁的教育经历，用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 属于哪份简历id
     */
    @TableField(value = "resume_id")
    private String resumeId;

    /**
     * 学校名称
     */
    @TableField(value = "school")
    private String school;

    /**
     * 学历
     */
    @TableField(value = "education")
    private String education;

    /**
     * 专业名称
     */
    @TableField(value = "major")
    private String major;

    /**
     * 开始日期
     */
    @TableField(value = "begin_date")
    private String beginDate;

    /**
     * 结束日期
     */
    @TableField(value = "end_date")
    private String endDate;

    @TableField(value = "created_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @TableField(value = "updated_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;
}
